package com.jeesite.modules.fl.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;


@Table(name = "fl_action_record", alias = "a", columns = {
        @Column(name = "id", attrName = "id", label = "id", isPK = true),
        @Column(name = "action", attrName = "action", label = "操作"),
        @Column(name = "content", attrName = "content", label = "操作内容"),
        @Column(name = "appointment", attrName = "appointment.id", label = "预约"),
        @Column(name = "reason", attrName = "reason", label = "理由"),
        @Column(includeEntity = DataEntity.class),
	},joinTable = {
        @JoinTable(type = Type.LEFT_JOIN, entity = Appointment.class, alias = "l", on = "l.id = a.appointment", attrName = "appointment", columns = {@Column(name = "no", label = "预约编号")}),
	}, orderBy = "a.update_date DESC"
)
public class ActionRecord extends DataEntity<ActionRecord>{

	private static final long serialVersionUID = 1L;
	
	private Appointment appointment;
	private String action;
	private String content;
	private String reason;
	
	public ActionRecord(){
		super();
	}
	
	public ActionRecord(String id){
		super(id);
	}

	public Appointment getAppointment() {
		return appointment;
	}

	public void setAppointment(Appointment appointment) {
		this.appointment = appointment;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}
	
	
}
